package com.csc.training.action;

import java.util.ArrayList;
import java.util.List;

import com.csc.training.DAO.ClassDAOImpl;
import com.csc.training.bean.Class;
import com.csc.training.inf.ClassDAO;
import com.opensymphony.xwork2.ActionSupport;

public class DisplayAddNewAction extends ActionSupport {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private ClassDAO classDao = new ClassDAOImpl();
	private List<Class> listClass = new ArrayList<Class>();

	@Override
	public String execute() throws Exception {
		listClass = classDao.listAllClass();
		return SUCCESS;
	}

	public List<Class> getListClass() {
		return listClass;
	}

	public void setListClass(List<Class> listClass) {
		this.listClass = listClass;
	}

}
